package dao

import (
	"zg3/user-modules/global"
	"zg3/user-modules/internal/model"
)

func FindUserAccount(account string) model.User {
	var result model.User
	if err := global.DB.Debug().Where("account = ?", account).Limit(1).Find(&result).Error; err != nil {
		return model.User{}
	}
	return result
}
